package lexis

class CLexicalException(message:String) extends Exception(message)

object CLexicalException
{
    def WRONG_TOKEN(token:String) = s"Wrong Token at: ${token.substring(0, if(token.size > 100) 100 else token.size)}..."

    def apply(message:String) = throw new CLexicalException(message)
}